function returnInt(val) {
  let result = parseInt(val);
  return result;
}
function returnFloat(val) {
  if (String(val).indexOf(".") == -1) {
    return "00";
  } else {
    let result = String(val).split(".")[1];
    return result;
  }
}
function checkPhone(val) {
  let reg = /^1[3456789]{1}\d{9}$/;
  if (reg.test(val)) {
    return true;
  } else {
    return false;
  }
}

export default {
  returnInt,
  returnFloat,
  checkPhone
};
